///////////////////////////////////////////////////////////////////////
//  CS 3716 (Winter 2012), Assignment #4                       		 //
//  Program File Name: MovieRec.java                           		 //
//       Student Name: Jonathan Hart-Wall, Adam Murphy         		 //
//					   Yifu Liang, Joshua Dowling			   		 //
//         Login Name: jcwhw1, agm264 , n96yl, n23jdd                //
//              MUN #: 200933455, 200933133, 200565679, 200703684    //
///////////////////////////////////////////////////////////////////////

public class MovieRec{

	private String name;
	private double rating;
	private int releaseyear;
	private String genre;
	private String submitter;
	
	/**
	 * MovieRec class parameters
	 * @param name
	 * @param rating
	 * @param releaseyear
	 * @param genre
	 * @param submitter
	 */
	public MovieRec( String name, double rating, int releaseyear, String genre, String submitter){
		this.name = name;
		this.rating = rating;
		this.releaseyear = releaseyear;
		this.genre = genre;
		this.submitter = submitter;
	}
	
	/**
	 * 
	 * @return name of MovieRec
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * 
	 * @param Set name of MovieRec to String name
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * 
	 * @return rating of MovieRec
	 */
	public double getRating() {
		return rating;
	}
	
	/**
	 * 
	 * @param Set rating of MovieRec to double rating
	 */
	public void setRating(double rating) {
		this.rating = rating;
	}
	
	/**
	 * 
	 * @return releaseyear of MovieRec
	 */
	public int getReleaseYear() {
		return releaseyear;
	}
	
	/**
	 * 
	 * @param Set releaseyear of MovieRec to int releaseyear
	 */
	public void setReleaseYear(int releaseyear) {
		this.releaseyear = releaseyear;
	}
	
	/**
	 * 
	 * @return genre of MovieRec
	 */
	public String getGenre() {
		return genre;
	}
	
	/**
	 * 
	 * @param Set genre to String genre
	 */
	public void setGenre(String genre) {
		this.genre = genre;
	}
	
	/**
	 * 
	 * @return submitter of MovieRec
	 */
	public String getSubmitter() {
		return submitter;
	}
	
	/**
	 * 
	 * @param Set submitter to String submitter
	 */
	public void setSubmitter(String submitter) {
		this.submitter = submitter;
	}
	
	/**
	 * toString method to return the MovieREc name, releaseyear, rating, genre and submitter
	 */
	public String toString(){
		return "Title: "+name + "; Year: " + releaseyear + "; Rating: " + rating+ "; Genre(s): " + genre + "; Submitted by: " + submitter;
	}
	
}
